#ifndef HOSTNAMESELECTDLG_H
#define HOSTNAMESELECTDLG_H

#include <QDialog>
#include "ui_HostnameSelectDlg.h"

class HostnameSelectDlg : public QDialog
{
    Q_OBJECT

public:
    HostnameSelectDlg(QWidget *parent = 0);
    ~HostnameSelectDlg();
    
    std::string GetAddress()
    {
       return ui.ipAddressLineEdit->text().toStdString();
    }
    
    std::string GetPort()
    {
       return ui.portLineEdit->text().toStdString();
    }

signals:

    void tryToConnect();

private:

   Ui::HostnameSelectDlgClass ui;
};

#endif // HOSTNAMESELECTDLG_H
